package com.itheima.stringBuilderDemo;

public class stringBuilderDemo2 {
    public static void main(String[] args) {
        //1.创建对象
        StringBuilder s1 = new StringBuilder();

        //2.添加字符串
        s1.append("abc");
        s1.append("def");

        //3.再把stringbuilder变回字符串
        String str = s1.toString();
        System.out.println(str);
    }
}
